package org.darkforest.common.services.impl;

import org.darkforest.common.services.OrderStatisService;
import org.darkforest.dao.mapper.OrderStatisMapper;
import org.darkforest.model.OrderStatis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/1/27.
 */
@Service
public class OrderStatisServiceImpl implements OrderStatisService {

    @Autowired
    private OrderStatisMapper orderStatisMapper;


    @Override
    public int deleteByPrimaryKey(Integer osMonth) {
        return orderStatisMapper.deleteByPrimaryKey(osMonth);
    }

    @Override
    public int insert(OrderStatis record) {
        return orderStatisMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderStatis record) {
        return orderStatisMapper.insertSelective(record);
    }

    @Override
    public OrderStatis selectByPrimaryKey(Integer osMonth) {
        return orderStatisMapper.selectByPrimaryKey(osMonth);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderStatis record) {
        return orderStatisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderStatis record) {
        return orderStatisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<OrderStatis> selectByCondition(OrderStatis orderStatis) {
        return orderStatisMapper.selectByCondition(orderStatis);
    }
}
